﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>EventPrint</title>
    <script src="~/lib/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
    <script src="~/Scripts/common.js"></script>
    <script src="~/Scripts/CreateControl.js" type="text/javascript"></script>
    <script src="~/Scripts/GRInstall.js"></script>
    <script type="text/javascript">
        Install_InsertReport();
        var Installed = Install_Detect();
        if (Installed) {
            CreatePrintViewer('@(ViewBag.Flag_Yc==1 ? @Url.Content("~/Grf/不良事件院内压疮报表.grf") : @Url.Content("~/Grf/不良事件报表.grf"))', '@Url.Action("GetReportData", "EditAdverseEvent")?eventID=@(ViewBag.EventID)');
        }
    </script>
</head>
<body>
</body>
</html>
<script type="text/javascript">
    $(function () {
        var reportViewer = $("#ReportViewer");
        if (reportViewer.html() == "" || reportViewer.height() == 100) { //兼容IE8和IE9
            reportViewer.remove();
            $("body").append(reportViewer);
        }
        $("body").height($(parent.document.getElementById("right")).height() - 30);
    });
</script>
